]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-tool: Request missing attribute
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 21 Jan 2022 01:41:51 +0000 (02:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 22 Jan 2022 13:05:30 +0000 (13:05 +0000)
g_file_enumerator_iterate() requires an enumerator that was created
with standard::file.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2121>

subprojects/extensions-tool/src/main.c

index c1e85dcf1f6fe8fbc8c9964d3e6dfaf13f197591..66a3476266149dfbf16720447fbb7157d7b4a68f 100644 (file)
@@ -263,7 +263,11 @@ file_delete_recursively (GFile   *file,
   g_autoptr (GFileEnumerator) file_enum = NULL;
   GFile *child;
 
-  file_enum = g_file_enumerate_children (file, NULL, 0, NULL, NULL);
+  file_enum = g_file_enumerate_children (file,
+                                         G_FILE_ATTRIBUTE_STANDARD_NAME,
+                                         G_FILE_QUERY_INFO_NONE,
+                                         NULL,
+                                         NULL);
   if (file_enum)
     while (TRUE)
       {